#ifndef __CONDITION_H
#define __CONDITION_H

#include <pthread.h>
#include "CThreadMutex.h"

class CCondition
{
private:
  pthread_cond_t  m_Cond;
  //pthread_mutex_t m_Mutex;

public:
	CCondition();
	~CCondition();
	int Wait(CThreadMutex *objMutex);
	int TimeWait(CThreadMutex *objMutex, int iSec);
	int Signal();
};


#endif